<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改电影数据</title>
    <style>
        div {
            margin: 0 auto;
        }

        #result {
            color: red;
            font-size: large;
        }
    </style>
</head>
<body>

<div>
    <!--/*@thymesVar id="movie" type="com.sll.springboot_movies.entity.Movie"*/-->
    <form method="post" th:action="'/movie/edit/' + ${session.movie.mid}">
        <!--为了避免和 URL 地址的 id 重复，内置一份影藏属性的 mid-->
<!--        <input type="text" name="mid" th:value="${session.movie.mid}" hidden>-->

        <label>电影名称：<input type="text" name="mname" th:value="${session.movie.mname}"></label><br/><br/>
        <label>电影别名：<input type="text" name="maliasname" th:value="${session.movie.maliasname}"></label><br/><br/>
        <label>主&nbsp;&nbsp;&nbsp;&nbsp;角：<input type="text" name="leadingactor" th:value="${session.movie.leadingactor}"></label><br/><br/>
        <label>导&nbsp;&nbsp;&nbsp;&nbsp;演：<input type="text" name="director" th:value="${session.movie.director}"></label><br/><br/>
        <label>时&nbsp;&nbsp;&nbsp;&nbsp;长：<input type="number" name="filmlength" th:value="${session.movie.filmlength}"></label><br/><br/>


        <input type="submit" value="修改">

    </form>

</div>
<br/>

</body>
</html>